home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / pdhmsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  8.3 KB  |  379 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1996  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     pdhmsg.h
  8.        (generated from pdhmsg.mc)
  9.  
  10. Abstract:
  11.  
  12.    Event message definititions used by routines by PDH.DLL
  13.  
  14. Created:
  15.  
  16.     6-Feb-96   Bob Watson (a-robw)
  17.  
  18. Revision History:
  19.  
  20. --*/
  21.  
  22. /*
  23.  *      C/C++ Run Time Library - Version 9.0
  24.  *
  25.  *      Copyright (c) 1997, 1998 by Borland International
  26.  *      All Rights Reserved.
  27.  *
  28.  */
  29.  
  30. #ifndef _PDH_MSG_H_
  31. #define _PDH_MSG_H_
  32. #pragma option push -b
  33.  
  34. //
  35. //     PDH DLL messages
  36. //
  37. //
  38. //      Success Messages
  39. //
  40. //         the Win32 error value ERROR_SUCCESS is used for success returns
  41. //
  42. //      MESSAGE NAME FORMAT
  43. //
  44. //          PDH_CSTATUS_...   messages are data item status message and
  45. //                     are returned in reference to the status of a data
  46. //                     item
  47. //          PDH_...           messages are returned by FUNCTIONS only and
  48. //                     not used as data item status values
  49. //
  50. //      Success Messages
  51. //         These messages are normally returned when the operation completed
  52. //         successfully.
  53. //
  54. //
  55. //  Values are 32 bit values layed out as follows:
  56. //
  57. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  58. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  59. //  +---+-+-+-----------------------+-------------------------------+
  60. //  |Sev|C|R|     Facility          |               Code            |
  61. //  +---+-+-+-----------------------+-------------------------------+
  62. //
  63. //  where
  64. //
  65. //      Sev - is the severity code
  66. //
  67. //          00 - Success
  68. //          01 - Informational
  69. //          10 - Warning
  70. //          11 - Error
  71. //
  72. //      C - is the Customer code flag
  73. //
  74. //      R - is a reserved bit
  75. //
  76. //      Facility - is the facility code
  77. //
  78. //      Code - is the facility's status code
  79. //
  80. //
  81. // Define the facility codes
  82. //
  83.  
  84.  
  85. //
  86. // Define the severity codes
  87. //
  88. #define STATUS_SEVERITY_WARNING          0x2
  89. #define STATUS_SEVERITY_SUCCESS          0x0
  90. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  91. #define STATUS_SEVERITY_ERROR            0x3
  92.  
  93.  
  94. //
  95. // MessageId: PDH_CSTATUS_VALID_DATA
  96. //
  97. // MessageText:
  98. //
  99. //  The returned data is valid.
  100. //
  101. #define PDH_CSTATUS_VALID_DATA           ((DWORD)0x00000000L)
  102.  
  103. //
  104. // MessageId: PDH_CSTATUS_NEW_DATA
  105. //
  106. // MessageText:
  107. //
  108. //  The return data value is valid and different from the last sample.
  109. //
  110. #define PDH_CSTATUS_NEW_DATA             ((DWORD)0x00000001L)
  111.  
  112. //
  113. //        Informational messages
  114. //
  115. //  None
  116. //
  117. //      Warning Messages
  118. //         These messages are returned when the function has completed 
  119. //         successfully but the results may be different than expected.
  120. //
  121. //
  122. // MessageId: PDH_CSTATUS_NO_MACHINE
  123. //
  124. // MessageText:
  125. //
  126. //  Unable to connect to specified machine or machine is off line.
  127. //
  128. #define PDH_CSTATUS_NO_MACHINE           ((DWORD)0x800007D0L)
  129.  
  130. //
  131. // MessageId: PDH_CSTATUS_NO_INSTANCE
  132. //
  133. // MessageText:
  134. //
  135. //  The specified instance is not present.
  136. //
  137. #define PDH_CSTATUS_NO_INSTANCE          ((DWORD)0x800007D1L)
  138.  
  139. //
  140. // MessageId: PDH_MORE_DATA
  141. //
  142. // MessageText:
  143. //
  144. //  There is more data to return than would fit in the supplied buffer. Allocate
  145. //  a larger buffer and call the function again.
  146. //
  147. #define PDH_MORE_DATA                    ((DWORD)0x800007D2L)
  148.  
  149. //
  150. // MessageId: PDH_CSTATUS_ITEM_NOT_VALIDATED
  151. //
  152. // MessageText:
  153. //
  154. //  The data item has been added to the query, but has not been validated nor 
  155. //  accessed. No other status information on this data item is available.
  156. //
  157. #define PDH_CSTATUS_ITEM_NOT_VALIDATED   ((DWORD)0x800007D3L)
  158.  
  159. //
  160. // MessageId: PDH_RETRY
  161. //
  162. // MessageText:
  163. //
  164. //  The selected operation should be retried.
  165. //
  166. #define PDH_RETRY                        ((DWORD)0x800007D4L)
  167.  
  168. //
  169. // MessageId: PDH_NO_DATA
  170. //
  171. // MessageText:
  172. //
  173. //  No data to return.
  174. //
  175. #define PDH_NO_DATA                      ((DWORD)0x800007D5L)
  176.  
  177. //
  178. // MessageId: PDH_CALC_NEGATIVE_DENOMINATOR
  179. //
  180. // MessageText:
  181. //
  182. //  A counter with a negative denominator value was detected.
  183. //
  184. #define PDH_CALC_NEGATIVE_DENOMINATOR    ((DWORD)0x800007D6L)
  185.  
  186. //
  187. // MessageId: PDH_CALC_NEGATIVE_TIMEBASE
  188. //
  189. // MessageText:
  190. //
  191. //  A counter with a negative timebase value was detected.
  192. //
  193. #define PDH_CALC_NEGATIVE_TIMEBASE       ((DWORD)0x800007D7L)
  194.  
  195. //
  196. // MessageId: PDH_CALC_NEGATIVE_VALUE
  197. //
  198. // MessageText:
  199. //
  200. //  A counter with a negative value was detected.
  201. //
  202. #define PDH_CALC_NEGATIVE_VALUE          ((DWORD)0x800007D8L)
  203.  
  204. //
  205. // MessageId: PDH_DIALOG_CANCELLED
  206. //
  207. // MessageText:
  208. //
  209. //  The user cancelled the dialog box.
  210. //
  211. #define PDH_DIALOG_CANCELLED             ((DWORD)0x800007D9L)
  212.  
  213. //
  214. //     Error Messages
  215. //        These messages are returned when the function could not complete
  216. //        as requested and some corrective action may be required by the
  217. //        the caller or the user.
  218. //
  219. //
  220. // MessageId: PDH_CSTATUS_NO_OBJECT
  221. //
  222. // MessageText:
  223. //
  224. //  The specified object is not found on the system.
  225. //
  226. #define PDH_CSTATUS_NO_OBJECT            ((DWORD)0xC0000BB8L)
  227.  
  228. //
  229. // MessageId: PDH_CSTATUS_NO_COUNTER
  230. //
  231. // MessageText:
  232. //
  233. //  The specified counter could not be found.
  234. //
  235. #define PDH_CSTATUS_NO_COUNTER           ((DWORD)0xC0000BB9L)
  236.  
  237. //
  238. // MessageId: PDH_CSTATUS_INVALID_DATA
  239. //
  240. // MessageText:
  241. //
  242. //  The returned data is not valid.
  243. //
  244. #define PDH_CSTATUS_INVALID_DATA         ((DWORD)0xC0000BBAL)
  245.  
  246. //
  247. // MessageId: PDH_MEMORY_ALLOCATION_FAILURE
  248. //
  249. // MessageText:
  250. //
  251. //  A PDH function could not allocate enough temporary memory to complete the
  252. //  operation. Close some applications or extend the pagefile and retry the 
  253. //  function.
  254. //
  255. #define PDH_MEMORY_ALLOCATION_FAILURE    ((DWORD)0xC0000BBBL)
  256.  
  257. //
  258. // MessageId: PDH_INVALID_HANDLE
  259. //
  260. // MessageText:
  261. //
  262. //  The handle is not a valid PDH object.
  263. //
  264. #define PDH_INVALID_HANDLE               ((DWORD)0xC0000BBCL)
  265.  
  266. //
  267. // MessageId: PDH_INVALID_ARGUMENT
  268. //
  269. // MessageText:
  270. //
  271. //  A required argument is missing or incorrect.
  272. //
  273. #define PDH_INVALID_ARGUMENT             ((DWORD)0xC0000BBDL)
  274.  
  275. //
  276. // MessageId: PDH_FUNCTION_NOT_FOUND
  277. //
  278. // MessageText:
  279. //
  280. //  Unable to find the specified function.
  281. //
  282. #define PDH_FUNCTION_NOT_FOUND           ((DWORD)0xC0000BBEL)
  283.  
  284. //
  285. // MessageId: PDH_CSTATUS_NO_COUNTERNAME
  286. //
  287. // MessageText:
  288. //
  289. //  No counter was specified.
  290. //
  291. #define PDH_CSTATUS_NO_COUNTERNAME       ((DWORD)0xC0000BBFL)
  292.  
  293. //
  294. // MessageId: PDH_CSTATUS_BAD_COUNTERNAME
  295. //
  296. // MessageText:
  297. //
  298. //  Unable to parse the counter path. Check the format and syntax of the 
  299. //  specified path.
  300. //
  301. #define PDH_CSTATUS_BAD_COUNTERNAME      ((DWORD)0xC0000BC0L)
  302.  
  303. //
  304. // MessageId: PDH_INVALID_BUFFER
  305. //
  306. // MessageText:
  307. //
  308. //  The buffer passed by the caller is invalid.
  309. //
  310. #define PDH_INVALID_BUFFER               ((DWORD)0xC0000BC1L)
  311.  
  312. //
  313. // MessageId: PDH_INSUFFICIENT_BUFFER
  314. //
  315. // MessageText:
  316. //
  317. //  The requested data is larger than the buffer supplied. Unable to return the
  318. //  requested data.
  319. //
  320. #define PDH_INSUFFICIENT_BUFFER          ((DWORD)0xC0000BC2L)
  321.  
  322. //
  323. // MessageId: PDH_CANNOT_CONNECT_MACHINE
  324. //
  325. // MessageText:
  326. //
  327. //  Unable to connect to the requested machine.
  328. //
  329. #define PDH_CANNOT_CONNECT_MACHINE       ((DWORD)0xC0000BC3L)
  330.  
  331. //
  332. // MessageId: PDH_INVALID_PATH
  333. //
  334. // MessageText:
  335. //
  336. //  The specified counter path could not be interpreted.
  337. //
  338. #define PDH_INVALID_PATH                 ((DWORD)0xC0000BC4L)
  339.  
  340. //
  341. // MessageId: PDH_INVALID_INSTANCE
  342. //
  343. // MessageText:
  344. //
  345. //  The instance name could not be read from the specified counter path.
  346. //
  347. #define PDH_INVALID_INSTANCE             ((DWORD)0xC0000BC5L)
  348.  
  349. //
  350. // MessageId: PDH_INVALID_DATA
  351. //
  352. // MessageText:
  353. //
  354. //  The data is not valid.
  355. //
  356. #define PDH_INVALID_DATA                 ((DWORD)0xC0000BC6L)
  357.  
  358. //
  359. // MessageId: PDH_NO_DIALOG_DATA
  360. //
  361. // MessageText:
  362. //
  363. //  The dialog box data block was missing or invalid.
  364. //
  365. #define PDH_NO_DIALOG_DATA               ((DWORD)0xC0000BC7L)
  366.  
  367. //
  368. // MessageId: PDH_CANNOT_READ_NAME_STRINGS
  369. //
  370. // MessageText:
  371. //
  372. //  Unable to read the counter and/or explain text from the specified machine.
  373. //
  374. #define PDH_CANNOT_READ_NAME_STRINGS     ((DWORD)0xC0000BC8L)
  375.  
  376. #pragma option pop
  377. #endif //_PDH_MSG_H_
  378. // end of generated file
  379.